import * as THREE from "three";

export default {
  text: function (renderer, camera, mesh, scene) {
    //BoxGeometry：长方体
    const geometry1 = new THREE.BoxGeometry(100, 100, 100);
    // SphereGeometry：球体
    const geometry2 = new THREE.SphereGeometry(50);
    // CylinderGeometry：圆柱
    const geometry3 = new THREE.CylinderGeometry(50, 50, 100);
    // PlaneGeometry：矩形平面
    const geometry4 = new THREE.PlaneGeometry(100, 50);
    // CircleGeometry：圆形平面
    const geometry5 = new THREE.CircleGeometry(50);

    new THREE.MeshBasicMaterial({
      side: THREE.FrontSide, //默认只有正面可见
    });
    new THREE.MeshBasicMaterial({
      side: THREE.DoubleSide, //两面可见
    });
  },
  text1: function () {
    // 模拟镜面反射，产生一个高光效果
    const material = new THREE.MeshPhongMaterial({
      color: 0xff0000,
      shininess: 20, //高光部分的亮度，默认30
    });
  },
};
